package com.admin.common.thread;


public class TestThread extends Thread{

    @Override
    public void run() {

        try {

            for (int i = 0; i<10 ;i++) {
                System.out.println("一遍学习:" + Thread.currentThread().getId());
                Thread.sleep(1000);
            }
        } catch (Exception e) {

        }

    }

    public static void main(String[] args) {
        TestThread t = new TestThread();
        t.start();

        TestThread t1 = new TestThread();
        t1.start();
    }
}
